﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DisposeText
{
    /// <summary>
    /// 单词类
    /// </summary>
    public class Word
    {
        private string value;
        //private string pos;

        public Word()
        {
            this.value = null;
            //this.pos = null;
        }

        public Word(string value)
        {
            this.value = value;
            ////this.pos = pos.Remove(pos.Length - 1);
            //this.pos = pos;
        }

        /// <summary>
        /// 单词的值
        /// </summary>
        public string Value
        {
            get { return value; }
            set { this.value = value; }
        }

        ///// <summary>
        ///// 单词的词类，Part of Speech
        ///// </summary>
        //public string POS
        //{
        //    get { return pos; }
        //    set { pos = value; }
        //}
        public override string ToString()
        {
            return value;
        }
    }
}
